package io.renren.modules.collect.service;

import io.renren.common.utils.R;
import io.renren.modules.collect.entity.CollectinfosCustomEntity;
import io.renren.modules.collect.entity.CollectinfosEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-24 18:48:18
 */
public interface CollectinfosService {
	//根据项目删除收藏
	int deleteByProject(String[] targetid);

	//删除用户的所有收藏
	int deleteByUser(String[] userinfoid);

	int apiDelete(Map<String, Object> map);

	int apiDeleteBatch(Map<String, Object> map);

	int queryApiTotal(Map<String, Object> map);

	List<CollectinfosCustomEntity> apiCollectList(Map<String, Object> map);
	
	CollectinfosEntity queryObject(String collectinfoid);

	CollectinfosCustomEntity queryCustomInfo(String collectinfoid);
	
	List<CollectinfosEntity> queryList(Map<String, Object> map);

	List<CollectinfosCustomEntity> queryCustomList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);

    int queryTotalByUser(Map<String, Object> map);
	
	void save(CollectinfosEntity collectinfos);
	
	void update(CollectinfosEntity collectinfos);
	
	void delete(String collectinfoid);
	
	void deleteBatch(String[] collectinfoids);

	R isExistCollect(CollectinfosEntity collectinfosEntity);

	boolean collectState(CollectinfosEntity collectinfosEntity);
}
